package cn.ticket.quartz;

import java.text.ParseException;
import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;

import cn.ticket.service.WorkBusesService;

public class GenerateWorkBus {
@Autowired
WorkBusesService workBusesService;
 
		public void generate(){
			//Date date=new Date(new Date().getTime()+1000*60*60*24*2);
			try {
			//	workBusesService.generateWorkBuses(date);
				workBusesService.generateWorkBusesNoAudit(new Date());
			} catch (ParseException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
}
